package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(20);not null;comment:商品名字"`
	Image  string  `gorm:"type:varchar(420);not null;comment:商品图片"`
	Price  float64 `gorm:"type:decimal(10,2);not null;comment:商品价格"`
	UserId int64   `gorm:"type:int(11);not null;comment:用户ID"`
}
